package com.tianhui.consignortwofei.pattern.orderOprate.impl;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;

import com.tianhui.consignortwofei.constant.KeyValue;
import com.tianhui.consignortwofei.mvp.model.enty.OrderOperateInfo;
import com.tianhui.consignortwofei.mvp.ui.activity.VehicleLocationActivity;
import com.tianhui.consignortwofei.pattern.orderOprate.IOrderOperate;

/**
 * @author fgs
 * @date 2020/9/27
 * @description 实时定位
 **/
public class RealTimeLocationOperate implements IOrderOperate {
    @Override
    public void orderOperate(Context context, OrderOperateInfo operateInfo) {
        Intent intent = new Intent(context, VehicleLocationActivity.class);
        Bundle bundle = new Bundle();
        bundle.putString(KeyValue.KEY_PLATE_NUMBER, operateInfo.orderInfo.vehiclenum);
        intent.putExtras(bundle);
        context.startActivity(intent);
    }
}
